#include <QCoreApplication>
#include <math.h>
#include <iostream>

using namespace std;


int main()

{
int a, b, c, d, e, f;
cout<< "Vvedite 3-h znch chislo a:";
cin>>a;
b = a/100;
a = a % 100;
c = a/10;
a=a%10;
d = a;

e=b+c+d;
cout<< "\n Proizvedenie ego chisel:"<< e;
f=b*c*d;
cout<< "\n Proizvedenie ego chisel:"<< f;
return 0;
}
